package model;

import java.io.Serializable;

@SuppressWarnings("serial")
public class Proposal implements Serializable {

	private String[] buyItems;
	private String[] sellItems;
	private int visistedItems;
	
	public Proposal(String[] buyItems, String[] sellItems, int visitedItems) {
		this.buyItems = buyItems;
		this.sellItems = sellItems;
		this.visistedItems = visitedItems;
	}

	/**
	 * @return the buy
	 */
	public String[] getBuyItems() {
		return buyItems;
	}
	
	/**
	 * @return the sell
	 */
	public String[] getSellItems() {
		return sellItems;
	}
	
	/**
	 * @return the visitedItems
	 */
	public int getVisistedItems() {
		return visistedItems;
	}
	
	@Override
	public String toString() {
		String ret = "PROPOSAL";
		
		for(String item : buyItems)
			ret = ret + " Item to buy: " + item;
		for(String item : sellItems)
			ret = ret + " Item to sell: " + item;
		
		return ret;
	}
}
